package com.example.tag;

import java.io.IOException;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.SimpleTagSupport;;


/**
 * @author 邱凯旋
 * 统计管理员的数量
 */
public class IsSuperSimpleTag extends SimpleTagSupport {

	//定义传值参数
	private String types;
	private String username;

	public void setTypes(String types) {
		this.types = types;
	}

	public void setUsername(String username){this.username = username;}

	@Override
	public void doTag() throws JspException, IOException {
		JspWriter out = getJspContext().getOut();
		if(types.equals("0")){
			out.print("对不起"+" "+"您（"+ username+")为普通管理员没有此权限");
		}
	}

}
